package cn.itcast.io.a.file.filefilter;

import java.io.File;
import java.io.FilenameFilter;

public class FileNameFilterByJava implements FilenameFilter {
    @Override
    public boolean accept(File dir, String name) {
        //System.out.println(dir+"--->"+name);
        return name.endsWith(".java");
    }
}
